package com.atguigu.yygh.hosp.dao;

import com.atguigu.yygh.hosp.User;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/*==================================
      时 间:   2023-03-18
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
===================================*/
public interface UserRepository  extends MongoRepository<User,String> {


    public List<User> findByUsername(String username);
    public List<User> findByUsernameLike(String username);
    public List<User> findByGenderTrue();
}
